import Vue from 'vue'
import App from './App.vue'
import router from './router/routes'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './mock'
import store from './store'
import './router/index' // permission control
// 全局引入icons文件夹,使用svg-icon
import './assets/icons' // icon

// global css
import './assets/style/index.css'

import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

Vue.config.productionTip = false
Vue.use(ElementUI);

Vue.use(mavonEditor)


new Vue({
  // 引入router，直接使用this引用路由对象
  router,
  // 引入vuex
  store,
  render: h => h(App),
  beforeCreate() {
    Vue.prototype.$bus = this    // 全局事件总线，$bus就是当前应用的vm
  }
}).$mount('#app')
